package cn.holy.app.xcddt.domain

import android.annotation.SuppressLint
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import androidx.room.Transaction
import android.os.Parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.io.Serializable
import java.util.*

/**
 * Created by 69568 on 2018/2/24.
 */


@Entity(tableName = "records")

class RecordBean : Serializable {

    @PrimaryKey(autoGenerate = true)
    var id:Int = 0

    var record_no: String = ""

    var address: String? = null

    var latitude: String? = null

    var longitude: String? = null

    var photos: List<String>? = null

    @Ignore
    var medias: List<String>? = null

    var nickname: String? = null

    var user_id:Int = 0


    var upload:Int = 0

    @Ignore
    var status: Int = 0

    @Ignore
    var task_num:String = ""

    /**
     * 巡查人：复数
     */

    var record_username: String? = null

    /**
     * 记录人
     */

    var record_people: String? = null

    /**
     * 巡查次数
     */

    var record_num: Int = 0

    /**
     * 巡查时间
     */

    var record_date: Date = Date()

    var message: String? = null

    var audio: String? = null

    var video: String? = null

    var videoThumb: String? = null

    var created_at: Date = Date()

    @Ignore
    var process: ArrayList<ProcessItem>? = null

    @Ignore
    var checks: ArrayList<RecordCheckBean>? = null

    @Ignore
    var status_label: String = ""

    override fun toString(): String {
        return "RecordBean(record_no='$record_no', address=$address, latitude=$latitude, longitude=$longitude, photos=$photos, nickname=$nickname, upload=$upload, status=$status, task_num='$task_num', record_username=$record_username, record_people=$record_people, record_num=$record_num, record_date=$record_date, message=$message, audio=$audio, video=$video, videoThumb=$videoThumb, created_at=$created_at, process=$process, checks=$checks, status_label='$status_label')"
    }


}

